import * as Phaser from "phaser";
class MyScene extends Phaser.Scene {
    constructor(config: Phaser.Types.Core.GameConfig) {
        super(config);
    }
}

export class MainGame {
    private readonly gameConfig!: Phaser.Types.Core.GameConfig;
    private game!: Phaser.Game;
    constructor(dom: string) {
        this.gameConfig = {
            width: 200,
            type: Phaser.AUTO,
            height: 200,
            backgroundColor: '#000000',
            parent: dom,
            physics: {
                default: 'arcade',
                arcade: {
                    gravity: { y: 300 },
                    debug: false,
                },
            },
        };
        this.init();
    }
    private init() {
        this.game = new Phaser.Game(this.gameConfig);
    }
}
